import 'dart:convert';

import '../generated/json/base/json_field.dart';
import '../generated/json/setting_entity.g.dart';


@JsonSerializable()
class SettingEntity {

	@JSONField(name: "api_addr")
	String? apiAddr;
  String? picApiAddr;
  String? faceApiAddr;
  String? psw;
  String? appKey;
  String? commonUid;
  String? hfPort;
  String? idPort;
  int? blockStart;
  int? blockCount;
  int? scanTime;

	String? auth = '1';
  bool? isUltra = false;

  @JSONField(name: "device_no")
  String? deviceNo;
	@JSONField(name: "normal_countdown")
	int? normalCountdown;
	@JSONField(name: "fast_countdown")
	int? fastCountdown;
	@JSONField(name: "slow_countdown")
	int? slowCountdown;

  SettingEntity();

  factory SettingEntity.fromJson(Map<String, dynamic> json) => $SettingEntityFromJson(json);

  Map<String, dynamic> toJson() => $SettingEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}

